package com.findyou.mapper;

import com.findyou.entity.Occupation;
import com.findyou.entity.Orders;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Title: OccupationMapper
 * @Author 贾金博
 * @Package com.findyou.mapper
 * @Date 2024/11/3 上午9:59
 * @description: 角色接口
 */
public interface OccupationMapper {

    /**
     * 注解 查询对应用户的全部角色
     * @param uid
     * @return
     */
    @Select("select * from user_occupation u left join  occupation o on o.id = u.occupation_id where u.userid = #{uid}")
    List<Occupation>findByUid(int uid);
}
